package com.example.demo.service;

import com.example.demo.entity.MusicCollection;
import com.example.demo.entity.MusicQuery;
import com.example.demo.entity.NoteCollection;
import com.example.demo.vo.ViewMusicCollectionInfo;
import com.github.pagehelper.PageInfo;

import java.util.Map;


public interface MusicCollectionService {
    //根据用户ID查找对应用户喜欢的笔记
    PageInfo<ViewMusicCollectionInfo> findMusicCollectionInfo(MusicQuery query, Integer pageNum, Integer pageSize);

    // 新增方法：统计用户收藏的歌曲种类数量
    Map<String, Integer> countMusicTypeByUserId(Integer user_id);




    //根据用户id和笔记id，收藏笔记。
    boolean insertMusicCollection( MusicCollection musicCollection);

    //取消收藏，笔记详情页
    boolean deleteMusicCollection1(MusicCollection musicCollection);

    //检查是否已经收藏
    boolean checkIfMusicCollection(Integer user_id, Integer music_id);
}
